#ifndef __UI_CASETABLE_H__
#define __UI_CASETABLE_H__

#include <QTableWidget>

#include "UIBase/QCWidget.h"

class UICaseTable : public QCWidget
{
	Q_OBJECT
public:
	explicit UICaseTable(QWidget *parent = 0);
	~UICaseTable();

public:
	void setQCGeometry(int x, int y, int w, int h);
	void initContent();

	QSize arrange();

signals:
	void clickRow(int);
	void doubleClickRow(int);	
	void onPrevClicked();
	void onNextClicked();

public slots:
void onRefresh();
void onClickedRow(int, int);
void onDoubleClickedRow(int, int);
void onPrev();
void onNext();

private:
	QLabel* m_pLabelTitle;
	QPushButton* m_pBtnRefresh;
	QTableWidget* m_pTable;

	QLabel* m_pLabelPages;
	QLabel* m_pLabelNumber;
	QLabel* m_pLabelIndicator;
	QPushButton* m_pBtnPrev;
	QPushButton* m_pBtnNext;

};

#endif //!__UI_CASETABLE_H__
